package com.emip.bean;

import java.io.Serializable;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "T_Item")
public class ItemBean implements Serializable {

	private static final long serialVersionUID = 1L;
	
	@Id
	@Column(name="ID")
	@GeneratedValue(generator = "userGenerator")     
	@GenericGenerator(name = "userGenerator", strategy = "assigned") 
	private String id;
	@ManyToOne(cascade = { CascadeType.PERSIST, CascadeType.MERGE })
    @JoinColumn(name = "MTypeID")
	private MonitorTypeBean monitorType;
	@Column(name="name")
	private String name;
	@Column(name="abrName")
	private String abrName;
	@Column(name="nationalName")
	private String nationalName;
	@Column(name="eMaxValue")
	private double eMaxValue;
	@Column(name="eMinValue")
	private double eMinValue;
	@Column(name="overMaxValue")
	private double overMaxValue;
	@Column(name="overMinValue")
	private double overMinValue;
	@Column(name="standUnit")
	private String standUnit;
	@Column(name="scale")
	private int scale;
	@Column(name="maxRange")
	private double maxRange;
	@Column(name="minRange")
	private double minRange;
	public void setId(String id) {
		this.id = id;
	}
	public String getId() {
		return id;
	}
	public void setMonitorType(MonitorTypeBean monitorType) {
		this.monitorType = monitorType;
	}
	public MonitorTypeBean getMonitorType() {
		return monitorType;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		return name;
	}
	public void setAbrName(String abrName) {
		this.abrName = abrName;
	}
	public String getAbrName() {
		return abrName;
	}
	public void setNationalName(String nationalName) {
		this.nationalName = nationalName;
	}
	public String getNationalName() {
		return nationalName;
	}
	public void seteMaxValue(double eMaxValue) {
		this.eMaxValue = eMaxValue;
	}
	public double geteMaxValue() {
		return eMaxValue;
	}
	public void seteMinValue(double eMinValue) {
		this.eMinValue = eMinValue;
	}
	public double geteMinValue() {
		return eMinValue;
	}
	public void setOverMaxValue(double overMaxValue) {
		this.overMaxValue = overMaxValue;
	}
	public double getOverMaxValue() {
		return overMaxValue;
	}
	public void setOverMinValue(double overMinValue) {
		this.overMinValue = overMinValue;
	}
	public double getOverMinValue() {
		return overMinValue;
	}
	public void setStandUnit(String standUnit) {
		this.standUnit = standUnit;
	}
	public String getStandUnit() {
		return standUnit;
	}
	public void setScale(int scale) {
		this.scale = scale;
	}
	public int getScale() {
		return scale;
	}
	public void setMaxRange(double maxRange) {
		this.maxRange = maxRange;
	}
	public double getMaxRange() {
		return maxRange;
	}
	public void setMinRange(double minRange) {
		this.minRange = minRange;
	}
	public double getMinRange() {
		return minRange;
	}
	 
}
